<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>在校学生信息</title>
		<link rel="stylesheet" type="text/css" href="asserts/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	
		<!-- js插件 -->
		<script src="js/jquery-3.2.1.min.js"></script>
		<script src="asserts/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <link rel="stylesheet" type="text/css" href="asserts/bootstrapValidate/css/bootstrapValidator.min.css"/>
 	   <script src="asserts/bootstrapValidate/js/bootstrapValidator.min.js"></script>
	
	</head>
	<body>
			<!-- 内容展示区 -->
			<div >
					<!-- 导航 -->
					<ol class="breadcrumb">
						<li><i class="fa fa-comment"></i> 在校学生管理</li>
					</ol>
					<div class="container-fluid">
						<!-- 	内容面板 -->
						<div class="panel panel-default">
							<!-- 控制按钮 -->
							<div class="panel-heading">
									<div class="btn-group">
										<button class="btn btn-primary" data-toggle="modal" data-target="#mymodal"><span class="glyphicon glyphicon-pencil"></span>添加</button>
										<button class="btn btn-success"><span class="glyphicon glyphicon-import"></span>导入excel</button>
										<button class="btn btn-info"><span class="glyphicon glyphicon-export"></span>导出excel模板</button>
									</div>
							</div><!-- 控制按钮  end-->
							<div class="panel-body">
								<table class="table table-bordered table-striped">
									<tr>
										<th width="5%"><input type="checkbox" name="" id="selectAll" /></th>
										<th width="5%">ID</th>
										<th width="10%">姓名</th>
										<th width="10%">身份证号</th>
										<th width="10%">学籍号</th>
										<th width="5%">学期</th>
										<th width="5%">年级</th>
										<th width="5%">班级</th>
										<th width="5%">是否寄宿</th>
										<th width="10%">所属学校</th>
										<th width="15%">操作</th>
									</tr>
									<!-- 数据绑定 -->
									<tr>
										<td><input type="checkbox" name="" class="eid" id="" /></td>
										<th width="5%">ID</th>
										<th width="10%">李华</th>
										<th width="10%">421003201909092321</th>
										<th width="10%">888888</th>
										<th width="5%">2019春季学期</th>
										<th width="5%">二</th>
										<th width="5%">3</th>
										<th width="5%">是</th>
										<th width="10%">藏龙岛小学</th>
										<td>
											<button type="button" class="btn btn-primary" 
												data-toggle="modal" data-target="#mymodal" >
												 <span class="glyphicon glyphicon-edit"></span> 修改</button>
											 <button type="button" class="btn btn-danger"> 
											 	<span class="glyphicon glyphicon-remove"></span> 删除</button>
										</td>
									</tr>
											
									 
										
									<!-- 	数据绑定 end -->
								</table>
								<!-- 	分页 -->
									<nav class="text-center">
									<ul class="pagination pagination-sm">
										<li class="disabled"><a href="javascript:void(0)">&laquo;</a></li>
										<li class="active"><a href="">1</a></li>
										<li><a href="">2</a></li>
										<li><a href="">3</a></li>
										<li><a href="">...</a></li>
										<li><a href="">49</a></li>
										<li><a href="">50</a></li>
										<li><a href="">&raquo;</a></li>
									</ul>
									</nav>
							</div>
						</div><!-- 内容面板 end -->
					</div>
			</div><!-- 	内容展示区 end-->
	 
		
		<!-- 弹层组件 添加标签 -->
		<div class="modal fade" id="mymodal">
			<div class="modal-dialog">
				<div class="modal-content">
					<form action=""  class="form-horizontal">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"><span>&times;</span></button>
							<h4 class="modal-title" id="mylabel">录入在校学生信息</h4>
						</div>
						<div class="modal-body">
							  
							  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">姓名：</label>
									<div class="col-md-8">
										<input type="text" name="name" placeholder="请输入姓名" class="form-control"  />
									</div>
								</div>
								  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">身份证号：</label>
									<div class="col-md-8">
										<input type="text" name="idcard" placeholder="请输入身份证号" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">学籍号：</label>
									<div class="col-md-8">
										 	<input type="text" name="stucode" placeholder="请输入学籍号" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">学期：</label>
									<div class="col-md-8">
											<input type="text" name="term" placeholder="例如：2019年春季学期、2019年秋季学期" class="form-control"  />
									</div>
								</div>
							  	<div class="form-group">
									<label class="control-label col-md-3">年级：</label>
									<div class="col-md-8">
										<input type="text" name="level" placeholder="请输入年级（如三年级）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">班级：</label>
									<div class="col-md-8">
										<input type="text" name="classes" placeholder="请输入班级（如一班）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">是否寄宿：</label>
									<div class="col-md-8">
										<select name="islodge" class="form-control">
											<option value="">请选择</option>
											<option value="是">是</option>
											<option value="否">否</option>
										</select> 
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">所属学校：</label>
									<div class="col-md-8">
									 <select name="schid" class="form-control">
											<option value="">请选择</option>
										 
										</select> 
									</div>
								</div>
							 
						</div>
						<div class="modal-footer">
							<button class="btn btn-danger" type="button">关闭</button>
							<button class="btn btn-primary" type="submit">录入</button>
						</div>
					</form>
				</div>
			</div>
		</div><!-- 弹层组件 添加标签 end -->
	 
	</body>
</html>
<script>
	 $(function () {
	  
        $('form').bootstrapValidator({
　　　　　　　　message: 'This value is not valid',
            　feedbackIcons: {
                　　　　　　　　valid: 'glyphicon glyphicon-ok',
                　　　　　　　　invalid: 'glyphicon glyphicon-remove',
                　　　　　　　　validating: 'glyphicon glyphicon-refresh'
            　　　　　　　　   },
            fields: {
                name: {
                    message: '用户名验证失败',
                    validators: {
                        notEmpty: {
                            message: '姓名不能为空'
                        }
                    }
                },
                idcard: {
                    validators: {
                        notEmpty: {
                            message: '身份证号不能为空'
                        }
                    }
                },
                stucode: {
                    validators: {
                        notEmpty: {
                            message: '学籍号不能为空'
                        }
                    }
                },
                term: {
                    validators: {
                        notEmpty: {
                            message: '学期不能为空'
                        }
                    }
                },
                level: {
                    validators: {
                        notEmpty: {
                            message: '年级不能为空'
                        }
                    }
                },
                classes: {
                    validators: {
                        notEmpty: {
                            message: '班级不能为空'
                        }
                    }
                },schid: {
                    validators: {
                        notEmpty: {
                            message: '学校不能为空'
                        }
                    }
                }
            } ,
            submitHandler: function (validator, form, submitButton) {
              // alert("submit");
            }
        });
    });
	
</script>